//
//  InstallationListModel.swift
//  ezyform
//
//  Created by MoennigQ on 12/12/2016.
//  Copyright © 2016 Client.Solution Pty Ltd. All rights reserved.
//

import UIKit
import HandyJSON
class InstallationListModel: HandyJSON {
    
    var pvd_id : Int32?
    var gwt_id : String?
    //Scheduled,Installing, Installed, Unqualified
    var status: String?
    //Owner's full name
    var full_name : String?
    var company: String?
    
    //Owner's address
    var full_install_address : String?
    
    var install_date: String?
    var scheduler_time: String = ""
    var reference: String?
    
    var po_reference: String?
    
    var completion_ratio: Double?
    
    var installation_type: String?
    //inverter number total
    var inverter_number_count: Int?
    //inverter finish count
    var inverter_number_finished_count: Int?
    //panel number total
    var panel_number_count: Int?//被web处理老版本用了（panel和inverter 的合并），用于Installation list cell中扫描图片是否完成的判断
    //finished count
    var panel_number_finished_count: Int?//被web处理老版本用了（panel和inverter 的合并），用于Installation list cell中扫描图片是否完成的判断，如果panel或inverter完成数量大于等于计划数量，那完成数量就等于计划数量
    //required checklist count
    var require_checklist_count: Int?
    //finished equired checklist count
    var require_checklist_finished_count: Int?
    //finished signatures
    var signature_finished_count: Int?
    //required finished signatures
    var require_signature_count: Int?
    //if local data is not uploaded
    var localDataFlag: Bool = false
    //panel number total
    var new_panel_number_count: Int?//从3.5.8版本开始，这个才是真正的panel number的数据
    //finished count
    var new_panel_number_finished_count: Int?//从3.5.8版本开始，这个才是真正的panel number的finished数据
    // is_new_stc_form 为 true 表示安装日期是2022-04-01以后的job
    var is_new_stc_form: Bool?
    var first_time_install: Bool?
    required init(){}
}
